package com.jinbei.service;

import com.jinbei.domain.Message;

import java.util.List;

/**
 * @author zflu
 * socket推送消息 service
 * Created by lucky on 2018/8/20.
 */
public interface MessageService {

    /**
     * @author zflu
     * @Description   socket消息新增
     * @date 2018/8/20 11:12
     * @param message
     * @return int
     */
    int insertMessage(Message message , String uid) throws Exception;

    /**
     * @author zflu
     * @Description   socket消息详情
     * @date 2018/8/20 11:13
     * @param id
     * @return com.jinbei.domain.Message
     */
    Message queryMessageById(int id) throws Exception;
    
    /**   
     * @author zflu
     * @Description socket消息列表
     * @date 2018/8/20 11:14
     * @param
     * @return java.util.List<com.jinbei.domain.Message>  
     */ 
    List<Message> queryMessageList() throws Exception;
}
